﻿using HuaweiCloud.Dotnet.Samples.ESports.Main.Dtos;
using HuaweiCloud.Dotnet.Samples.ESports.Main.Entities;

namespace HuaweiCloud.Dotnet.Samples.ESports.Main.Manager
{
    public interface IDeviceManager
    {
        /// <summary>
        /// 获取指定用户下所有绑定设备
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <returns></returns>
        Task<List<DeviceDto>> GetDevicesByUserIdAsync(Guid userId, CancellationToken token = default);
        /// <summary>
        /// 获取指定设备所绑定的用户
        /// </summary>
        /// <param name="deviceId">设备ID</param>
        /// <returns></returns>
        Task<Guid?> GetUserIdByDeviceIdAsync(Guid deviceId, CancellationToken token = default);
    }
}
